<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Result</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
<link href="../style.css" rel="stylesheet" />
</head>
<body onload="PR.prettyPrint()">
<pre class="prettyprint lang-java">
public class Result implements Serializable{

    private UserVO data; //响应数据
    private int code; //响应码
    private String msg; //响应消息

    public UserVO getData(){
        return data;
    }

    public void setData(UserVO data){
        this.data = data;
    }

    public int getCode(){
        return code;
    }

    public void setCode(int code){
        this.code = code;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }

}
</pre>


<pre class="prettyprint lang-java">
public class UserVO implements Serializable{

    private int userId; //用户id
    private String userName; //用户名字
    private String userImg; //用户头像
    private String userRole; //用户权限，user为游客，admin为博主
    private String userMail; //用户邮箱
    private String loginTime; //登陆时间
    private int supportSum; //一共获赞/收藏/支持量
    private int browseSum; //一共浏览量
    private int articleSum; //已发布文章数量

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
    }

    public String getUserName(){
        return userName;
    }

    public void setUserName(String userName){
        this.userName = userName;
    }

    public String getUserImg(){
        return userImg;
    }

    public void setUserImg(String userImg){
        this.userImg = userImg;
    }

    public String getUserRole(){
        return userRole;
    }

    public void setUserRole(String userRole){
        this.userRole = userRole;
    }

    public String getUserMail(){
        return userMail;
    }

    public void setUserMail(String userMail){
        this.userMail = userMail;
    }

    public String getLoginTime(){
        return loginTime;
    }

    public void setLoginTime(String loginTime){
        this.loginTime = loginTime;
    }

    public int getSupportSum(){
        return supportSum;
    }

    public void setSupportSum(int supportSum){
        this.supportSum = supportSum;
    }

    public int getBrowseSum(){
        return browseSum;
    }

    public void setBrowseSum(int browseSum){
        this.browseSum = browseSum;
    }

    public int getArticleSum(){
        return articleSum;
    }

    public void setArticleSum(int articleSum){
        this.articleSum = articleSum;
    }

}
</pre>



<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
</body>
</html>